Adding color to tables is fraught with difficulties, but as the examples in this file indicate, it can be done. In any case, consider this an advanced topic, and be aware that the commands in "colortab.tex" are not robust.
This is meant to supplement your own color commands. There are many macro files that implement color for the various "dvi" drivers that can support color. E.g., the PSTricks package works with a variety of DVI-to-PS drivers.
For example, suppose you have a macro that defines the color command "". "colortab.tex" requires that one of the following produce a gray line:
{\gray \hrule} \gray{\hrule}if you want to use this command to color the cells in tables. This is probably the case if the one of the following produces gray text:
{\gray I am gray!} \gray{I am gray!}
"colortab.tex" contains macros for TEX's "" primitive. Incorporating color into high-level macros based on the "" primitive requires a case-by-case treatment. "colortab.tex" also contains macros for coloring cells LATEX's various array environments, and for the LATEX "longtable" environment that is defined in the "longtable" (or "longtabl") style option. These can serve as examples that can be accommodated to other table macros. See the code itself for happy hacking.